package yh.design.strategy.impl;

import org.springframework.stereotype.Service;
import yh.design.common.res.APIResult;
import yh.design.strategy.IPayment;
import yh.design.model.VipCardDTO;

import java.math.BigDecimal;

/**
 * 会员卡支付
 * @author: zyh
 * @date: 2025/4/5 21:56
 **/
@Service("vipCardPayment")
public class VipCardPayment implements IPayment<VipCardDTO> {


    @Override
    public APIResult executePay(VipCardDTO payInfo, BigDecimal payAmount) {
        //1.扣钱会员卡余额
        System.out.println("扣钱会员卡余额");
        //2.记录消费账单记录
        System.out.println("记录消费账单记录");
        //3.会员积分计算
        System.out.println("会员积分计算");
        return APIResult.success();
    }
}
